package com.ftg.learn.pattern;

/**
 * @author kangjx
 * @createTime 2022/11/28
 */
public class ChildCoat extends Coat{

    private String size;
    private String color;


    @Override
    public String initSize() {
        return "衣服大小为"+ this.size;
    }

    @Override
    public String initColor() {
        return "衣服大小为"+ this.color;
    }

    @Override
    public String info() {
        return "生产了一个大衣，颜色" + this.getColor()+",大小为" + this.getSize();
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
